<template>
  <div>
    <swiper  :options="swiperOption"  class="swiper">
      <swiper-slide class="swiper-slide" v-for="(item,index) in slide" :key="index">{{item}}</swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
import "swiper/dist/css/swiper.css";
import { swiper, swiperSlide } from "vue-awesome-swiper";
export default {
  data() {
    return {
      swiperOption: {
          direction:'vertical',
          pagination: {
            el: '.swiper-pagination'
          }
        },
      slide: [1, 2, 3, 4, 5, 6,7,8]
    };
  },
  components:{swiper, swiperSlide }
};
</script>

<style scoped>
.swiper-slide{
    height: 4rem;
    text-align: center;
    line-height: 4rem;
}
.swiper{
     height: 8rem;
     border-top:1px solid #ccc;
     border-bottom: 1px solid #ccc;
}
</style>